/*module.exports属性表示当前模块对外输出的接口，其他文件加载该模块，实际上就是读取module.exports变量。*/
let example = require('./example.js');
let fun = function () {
    return 'hello word'
};
let a=7;
console.log(example.x); // 5
console.log(example.addX(1)); // 6
//exports.fun=fun;
module.exports.fun=fun;
module.exports.fun2 = function () {
    return "hello"
};
exports.fun3 = function () {
    return 'helloC'
};
module.exports.a=a;
//console.log(module)